home *** CD-ROM | disk | FTP | other *** search
-
- shader()
- {
- Cull("ccw")
- sortweight("translucent14")
-
- stream("color", 0)
-
- pass()
- {
- Pixelshader("SunGlow.psh")
- tmu()
- {
- TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
- TexMod("rotate", "lin", 0, -5, 0.5, "none", 0, 0, 0)
- TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
- texture()
- {
- Image("SunRays.dds")
- addressfunc("clamp", "clamp", "clamp")
- }
-
- }
- tmu()
- {
- TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
- TexMod("rotate", "lin", 0, 5, 0.5, "none", 0, 0, 0)
- TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
- texture()
- {
- mapchannel(0)
- Image("SunRays.dds")
- addressfunc("clamp", "clamp", "clamp")
- }
-
- }
-
-
- BlendFunc("one", "one")
- DepthFunc("always", 0)
-
- tfactor(1,1,1,1)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
- NoFog()
- }
- }
-
-
- shader()
- {
- Cull("ccw")
- sortweight("translucent14")
-
- stream("color", 0)
-
- pass()
- {
- tmu()
- {
- TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
- TexMod("rotate", "lin", 0, -5, 0.5, "none", 0, 0, 0)
- TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
- texture()
- {
- Image("SunRays.dds")
- addressfunc("clamp", "clamp", "clamp")
- }
- ColorOp("mul", "texture", "tfactor", "current")
-
- }
- tmu()
- {
- TexMod("translate", "const", -0.5, 0, 0, "const", -0.5, 0, 0)
- TexMod("rotate", "lin", 0, 5, 0.5, "none", 0, 0, 0)
- TexMod("translate", "const", 0.5, 0, 0, "const", 0.5, 0, 0)
- texture()
- {
- mapchannel(0)
- Image("SunRays.dds")
- addressfunc("clamp", "clamp", "clamp")
- }
- ColorOp("mul", "texture", "current", "current")
- AlphaOp("arg2", "texture", "tfactor", "current")
-
- }
- tfactor(%sunvisibility, %sunvisibility, %sunvisibility, 1)
-
- BlendFunc("src_alpha", "one")
- DepthFunc("always", 0)
-
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
- NoFog()
- }
- }
-
-